package com.jgraves.WikiToSpeech.objects;

/** Object holding answerText, responseText and links (both answer side and response side)
 * @author johngraves
 *
 */
public class Answer {

	private String answerText = "";
	/** Link to internet content to be opened when answer is selected */
	private String answerSideLink = "";
	/** Flag indicating whether answerSideLink is sticky (playback is suspended until focus returns) */
	private boolean sticky = false;
	/** Flag indicating whether user input is allowed for this answer */
	private boolean input = false;
	/** Token in dictionary to be populated with input */
	private String token = "";

	/** Response to make when answer is selected */
	private String responseText = "";
	/** Link to script to be opened when answer is selected */
	private String responseSideLink = "";

	/** RELATIVE question number advance: -1=prior question, 0=stay on same question, 1=next question, etc. */
	private int action = 0; 
	/** Flag indicating whether answer has been selected previously - controls color of text*/
	private boolean visited = false;

	private String answerLanguage = "";
	private String responseLanguage = "";
	
	
	public String getAnswerText() {
		return answerText;
	}
	public void setAnswerText(String answerText) {
		this.answerText = answerText;
	}
	public String getResponseText() {
		return responseText;
	}
	public void setResponseText(String responseText) {
		this.responseText = responseText;
	}
	public String getAnswerSideLink() {
		return answerSideLink;
	}
	public void setAnswerSideLink(String answerSideLink) {
		this.answerSideLink = answerSideLink;
	}
	public String getResponseSideLink() {
		return responseSideLink;
	}
	public void setResponseSideLink(String responseSideLink) {
		this.responseSideLink = responseSideLink;
	}
	public int getAction() {
		return action;
	}
	public void setAction(int action) {
		this.action = action;
	}
	public boolean isVisited() {
		return visited;
	}
	public void setVisited(boolean visited) {
		this.visited = visited;
	}
	public boolean isSticky() {
		return sticky;
	}
	public void setSticky(boolean sticky) {
		this.sticky = sticky;
	}
	public void setInput(boolean input) {
		this.input = input;
	}
	public boolean isInput() {
		return input;
	}
	public String getAnswerLanguage() {
		return answerLanguage;
	}
	public void setAnswerLanguage(String answerLanguage) {
		this.answerLanguage = answerLanguage;
	}
	public String getResponseLanguage() {
		return responseLanguage;
	}
	public void setResponseLanguage(String responseLanguage) {
		this.responseLanguage = responseLanguage;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
}
